﻿@model Domain.User

@{
    ViewBag.Title = "UserDetails";
}

<h2>UserDetails</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>User</legend>

        @Html.HiddenFor(model => model.Id)

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Comment)
            @Html.ValidationMessageFor(model => model.Comment)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PasswordQuestion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PasswordQuestion)
            @Html.ValidationMessageFor(model => model.PasswordQuestion)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PasswordAnswer)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PasswordAnswer)
            @Html.ValidationMessageFor(model => model.PasswordAnswer)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsAnonymous)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsAnonymous)
            @Html.ValidationMessageFor(model => model.IsAnonymous)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsApproved)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsApproved)
            @Html.ValidationMessageFor(model => model.IsApproved)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastActivityDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastActivityDate)
            @Html.ValidationMessageFor(model => model.LastActivityDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastLoginDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastLoginDate)
            @Html.ValidationMessageFor(model => model.LastLoginDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastPasswordChangedDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastPasswordChangedDate)
            @Html.ValidationMessageFor(model => model.LastPasswordChangedDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.CreationDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CreationDate)
            @Html.ValidationMessageFor(model => model.CreationDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsOnLine)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsOnLine)
            @Html.ValidationMessageFor(model => model.IsOnLine)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IsLockedOut)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsLockedOut)
            @Html.ValidationMessageFor(model => model.IsLockedOut)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastLockedOutDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastLockedOutDate)
            @Html.ValidationMessageFor(model => model.LastLockedOutDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FailedPasswordAttemptCount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FailedPasswordAttemptCount)
            @Html.ValidationMessageFor(model => model.FailedPasswordAttemptCount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FailedPasswordAttemptWindowStart)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FailedPasswordAttemptWindowStart)
            @Html.ValidationMessageFor(model => model.FailedPasswordAttemptWindowStart)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FailedPasswordAnswerAttemptCount)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FailedPasswordAnswerAttemptCount)
            @Html.ValidationMessageFor(model => model.FailedPasswordAnswerAttemptCount)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.FailedPasswordAnswerAttemptWindowStart)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FailedPasswordAnswerAttemptWindowStart)
            @Html.ValidationMessageFor(model => model.FailedPasswordAnswerAttemptWindowStart)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.LastLoginIP)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.LastLoginIP)
            @Html.ValidationMessageFor(model => model.LastLoginIP)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NewPasswordRequestDate)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NewPasswordRequestDate)
            @Html.ValidationMessageFor(model => model.NewPasswordRequestDate)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.EmailParceiro)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.EmailParceiro)
            @Html.ValidationMessageFor(model => model.EmailParceiro)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Genero)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Genero)
            @Html.ValidationMessageFor(model => model.Genero)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Nome)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Nome)
            @Html.ValidationMessageFor(model => model.Nome)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
